<template>
    <el-menu
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose"
      router
      :default-active="$route.path"
    >
      <!-- <el-sub-menu index="1">
          <template #title>
            <el-icon><icon-menu /></el-icon>
            <span>个人信息</span>
          </template> -->
      <!-- <el-menu-item-group>
            <template #title><span>Group One</span></template>
            <el-menu-item index="1-1">item one</el-menu-item>
            <el-menu-item index="1-2">item two</el-menu-item>
          </el-menu-item-group>
          <el-menu-item-group title="Group Two">
            <el-menu-item index="1-3">item three</el-menu-item>
          </el-menu-item-group>
          <el-sub-menu index="1-4">
            <template #title><span>item four</span></template>
            <el-menu-item index="1-4-1">item one</el-menu-item>
          </el-sub-menu> -->
      <!-- </el-sub-menu> -->
      <el-menu-item index="/cacHospitel/mediCineView/mediCine">
        <el-icon><setting /></el-icon>
        <template #title>录入药品</template>
      </el-menu-item>
      <el-menu-item index="/cacHospitel/mediCineView/mediCineHty">
        <el-icon><icon-menu /></el-icon>
        <template #title>药品信息</template>
      </el-menu-item>
      <!-- <el-menu-item index="3" disabled>
          <el-icon><document /></el-icon>
          <template #title>Navigator Three</template>
        </el-menu-item> -->
    </el-menu>
  </template>
    
    <script lang="ts" setup>
  import { ref } from "vue";
  import {
    Document,
    Menu as IconMenu,
    Location,
    Setting,
  } from "@element-plus/icons-vue";
  
  const handleOpen = (key: string, keyPath: string[]) => {
    console.log(key, keyPath);
  };
  const handleClose = (key: string, keyPath: string[]) => {
    console.log(key, keyPath);
  };
  </script>
    <style scoped>
  .el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 200px;
    min-height: 400px;
  }
  </style>